<template>
  <view class="u-content">
	  <!-- 公共组件-每个页面必须引入 -->
	  <!-- <public-module></public-module> -->
  		<u-parse :content="content"></u-parse>
  	</view>
</template>

<script>
  import {agreementDetail,pageSeo} from '@/config/api.js'
  export default {
    data() {
      return {
        content: ''
      }
    },
    onLoad(e) {
      agreementDetail({agreementType:e.agreementType}).then((res)=>{
		  this.content = res.agreementContent
		  uni.setNavigationBarTitle({
		  	title: res.agreementTitle
		  });
	  })
    },
	
	async onShow() {
		// #ifdef H5
			pageSeo({pageType: 'indexPage'}).then((res)=>{
				document.title = res.pageTitle;
			})
		// #endif
		
	},
	
   
    methods: {
     
	 
    },

  }
</script>

<style lang="scss">
 .u-content {
	     min-height:100vh;
	     background: #fff;
         padding: 24rpx;
         font-size: 28rpx;
         line-height: 1.6;
     }
</style>